<?php
namespace app\admin\controller;

use app\admin\controller\Base;
use app\admin\model\Arctile;
use think\Db;

class Index extends Base
{
    public function index()
    {
    	$list = [];
    	$list = Db::name('arctile')->where('status', '=', 1)->limit(12)->order('release_time', 'desc')->select();
        return view('index/index', ['data'=>$list]);
    }

    public function errorAdmin()
    {
        return view('error/index');
    }
}
